package com.sf.mapper;

import com.sf.domain.Employee;
import com.sf.qo.EmployeeQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper  {
    /**
     * 根据账号和密码查询数据库信息
     */
    Employee login(@Param("name") String name, @Param("password") String password);

    /**
     * 查询表总记录数
     * @param queryObject
     * @return
     */
    Integer selectForCount(EmployeeQueryObject queryObject);

    /**
     * 查询分页数据
     * @param queryObject
     * @return
     */
    List<Employee> selectForList(EmployeeQueryObject queryObject);

    void delete(Long id);

    Employee get(Long id);

    void insert(Employee employee);

    void update(Employee employee);
}
